<?php
// 日报系统

!defined('IN_SYSTEM') && exit('Access denied');

class publicControlPage extends commonControlPage 
{
	/*[获得客户列表]*/
	public function GetCustomerModule()
	{
		if (AJAX) 
		{ 
       		$users = $_ENV['db']->fetchAll("SELECT * FROM customer WHERE customer_name LIKE '%{$_REQUEST['q']}%'");
            exit( json_encode($users) );
        }
	}
	/*[获得客户列表]*/
	public function GetUserModule()
	{
		if (AJAX) 
		{ 
       		$users = $_ENV['db']->fetchAll("SELECT m.username,m.nickname,m.uid FROM `admincp_member` as m");
            exit( json_encode($users) );
        }
	}
	
}